﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ElectronicsMarket.Service.Models;
using System.ServiceModel;

namespace ElectronicsMarket.Service.IService
{
    [ServiceContract]
    interface IUserService
    {
        [OperationContract]
        CUSTOMER getUserById(int id);

        [OperationContract]
        CUSTOMER getUserByUsernameAndPassword(string username, string password);

        [OperationContract]
        List<CUSTOMER> getAllUser();

        [OperationContract]
        int getLastUserId();

        [OperationContract]
        bool addNewUser(int customerId, string username, string password, string email, DateTime registerDate, string firstName, string lastName, string address, string phoneNumber, DateTime birthday, bool sex);

        [OperationContract]
        void deleteUser(CUSTOMER customer);

        [OperationContract]
        bool IsCreated(int customerId);

        [OperationContract]
        bool editUser(int userId, string address, string email);
    }
}
